package com.wxg.controller;

import org.beetl.core.GroupTemplate;
import org.beetl.core.Template;

import com.jfinal.core.Controller;
import com.wxg.util.MyBeetlUtil;

public class TestController extends Controller{

	public void index(){
		renderText("Hello Test!");
	}
	
	public void beetl(){
		GroupTemplate gt = MyBeetlUtil.gt();
		Template t = gt.getTemplate("/beetl/hello.html");
		t.binding("name", "Beetl");
		String beetlStr = t.render();
		renderText(beetlStr);
	}
	
	
}
